import request from '@/utils/request.js'

export const pageApi = (nub,status,sname,result,page,pageSize) =>
  request.get(`/review/pagelist?nub=${nub}&status=${status}&sname=${sname}&result=${result}&page=${page}&pageSize=${pageSize}`)

export const addApi = (data) =>request.post
('/review/add',data)

export const updateApi = (data) =>request.put
('/review/update',data)

export const deleteApi = (id) =>request.delete
(`/review/delete/${id}`)

export const exApi = (data) =>request.put
(`/review/examine`,data)